Java Program to print triangle of zero and one pattern